<%@ page language="java" contentType="text/html;  charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="/resources/css/font-awesome.css" rel="stylesheet">
<link href="/resources/css/jquery-ui.css" rel="stylesheet">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">

<script src="/resources/lib/jquery.min.js"></script>
<script src='/resources/lib/jquery-ui.custom.min.js'></script>
<script src="/resources/lib/jquery-ui.js"></script>
<style type="text/css">
	html, body {
    	font-family: "Nanum Gothic", sans-serif;
    	width:100%;
    	height:100%;
    	font-size: 13px;
    	margin:0;
    	padding:0;
    	text-align:center;
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>검색</title>
</head>
<body>
<!-- 헤더 -->
<%@ include file="/WEB-INF/views/common/header.jsp" %>
<div style="width:800px;text-align:left;border:1px solid;">
<div>
<c:choose>
	<c:when test="${map.searchType == 'title'}">
		<div style="float:left;"><button type="button" class="btn btn-default" style="width:60px;margin-right:15px;" onclick="location.href='/calendar.do'"><span class="fa fa-reply"></span></button><strong>${map.searchValue}</strong> 검색 결과</div>
	</c:when>
	<c:when test="${map.searchType == 'date'}">
		<div style="float:left;"><strong>${map.searchStartTime} - ${map.searchEndTime}</strong> 검색 결과</div>
	</c:when>
</c:choose>
	<div style="float:right"><button type="button" class="btn btn-default" style="width:60px;"><span class="fa fa-print"></span></button></div>
</div>
<br><br><br>
<c:choose>
	<c:when test="${fn:length(list) == 0}"><div style="text-align:center;">검색 결과가 없습니다.</div></c:when>
	<c:when test="${fn:length(list) != 0}">
		<c:forEach var="list" items="${list}" varStatus="status">
			<div>${list.title} ${list.startTime} ${list.endTime}<br></div>
		</c:forEach>
	</c:when>
</c:choose>

</div>
</body>
</html>